package listener;

import java.util.Vector;

public  class userList {
    private static Vector online = new Vector();

    //添加人数
    public static void addUser(String username) {
        online.addElement(username);
    }

    //移除人数

    public static void removeUser(String username)
    {
        online.removeElement(username);
    }

    //统计人数

    public static int getCount(){
      /*  for (Object s:online
            ) {
            System.out.println((String) s);
    }*/
        return online.size();

    }

}
